package org.perso.bd.resource;

import org.perso.bd.CollectionBuilder;
import org.perso.bd.bean.Collection;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;

import java.io.IOException;

/**
 * Created by b.bassac on 20/10/2014.
 */
public class ListingResource extends ServerResource {

    @Get("json")
    public Collection getCollection() throws IOException {

        return CollectionBuilder.getCollection();

    }
}
